//
//  ZZAboutController.m
//  NetesaeLottery
//
//  Created by 周英培 on 16/8/7.
//  Copyright © 2016年 周英培. All rights reserved.
//

#import "ZZAboutController.h"

@interface ZZAboutController ()

@end

@implementation ZZAboutController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.tableView.tableHeaderView = [[[NSBundle mainBundle] loadNibNamed:@"ZZAboutHeader" owner:nil options:nil] lastObject];
    
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {

    return 20;

}

/// 评分支持
- (void)scoreSupport {

    // 获取应用程序对象
    UIApplication *app = [UIApplication sharedApplication];
    
    // 打开网易彩票在AppStore的界面
    [app openURL:[NSURL URLWithString:@"http://itunes.apple.com/cn/app/id411654863?mt=8"]];

}

/// 打电话
- (void)callKFMM {

    UIApplication *app = [UIApplication sharedApplication];
    
    [app openURL:[NSURL URLWithString:@"tel://10086"]];
    
}

@end
